package com.alfred.mall.order.biz.convert;

import com.alfred.mall.order.api.bo.OrderItemBO;
import com.alfred.mall.order.api.dto.OrderCreateDTO;
import com.alfred.mall.order.biz.dataobject.OrderItemDO;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface OrderItemConvert {

    OrderItemConvert INSTANCE = Mappers.getMapper(OrderItemConvert.class);

    @Mappings({})
    List<OrderItemBO> convertOrderItemDO(List<OrderItemDO> orderItemDOList);

    List<OrderItemDO> convert(List<OrderCreateDTO.OrderItem> orderCreateItemDTOList);
}
